package cn.codergege.demo.factory.simple;

public class CarSimpleFactory {
	public Car createCar(String carType) {
		Car car = null;
		switch (carType) {
		case "Audi":
			car = new Audi();
			break;
		case "Byd":
			car = new Byd();
			break;
		default:
			break;
		}
		return car;
	}
}
